<%@page import="helpers.LanguageHelper"%>
<%@page import="helpers.UrlHelper"%>
<%@page import="entities.Article"%>
<%
LanguageHelper translate = (LanguageHelper) request.getAttribute("translate");
Article article = (Article) request.getAttribute("article");
String url = "";
if (article != null) {
	url = "/remove-article?id=" + article.getId() + "&key=" + article.getAuthKey();
}
String success = (String) request.getAttribute("success");

//Set content for seo
String nameServer = UrlHelper.getDomainServer(request);

String title = "Remove article";
if (article != null) {
	title += " " + article.getTitle();
}
%>
<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<jsp:include page="/layouts/header.jsp">
	<jsp:param name="title" value="<%=title %>" />
    <jsp:param name="ogtitle" value="<%=title %>" />
</jsp:include>
            
            <div id="mainContent" class="left">
            	<div id="removePage">
            		<% if (article != null) { %>
                	<h3 class="title"><%=translate.getString("remove_page_title") %></h3>
                	
                    <p><%=translate.getString("remove_message_confirm") %></p>
                    <p><%=article.getTitle() %></p>
                    
                    <br />
                    <a href="/"><%=translate.getString("remove_cancel") %></a> <span style="padding-left: 50px;">&nbsp;</span>
                    <a href="<%=url %>&action=yes"><%=translate.getString("remove_yes") %></a>
                    <% } else if (success != null) { %>
                    <h3 class="title"><%=translate.getString("remove_page_title") %></h3>
                    <p><%=success %>. <%=translate.getString("remove_submit_article") %></p>
                    <% } else { %>
                    <h3 class="title"><%=translate.getString("remove_404_title") %></h3>
                    <p><%=translate.getString("remove_404_message") %></p>
                    <% } %>
                </div>
            </div>
            
            <jsp:include page="/elements/right.jsp" />
            
            <div class="clearbreak"></div>
<jsp:include page="/layouts/footer.jsp" />